#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>


int main()
{
    const char* fstr = "hello fwrite!";
    const char* str = "hello write!\n";

    printf("hello printf!");
    fprintf(stdout,"hello printf!");
    fwrite(fstr,strlen(fstr),1,stdout);
    close(1);
    write(1,str, strlen(str));
    fork();
    return 0;
}